home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 51 / Amiga Format CD51 (2000-03-10)(Future Publishing)(GB)[!][issue 2000-04].iso / -in_the_mag- / freedos / freedos_docs / mini / mini-emacs.txt < prev    next >
Text File  |  2000-02-08  |  3KB  |  105 lines

  1.              FREEMACS MINI-HOWTO
  2.  
  3.               Jim Hall, <jhall1@isd.net>
  4.           Version 1.0 - updated 01 Nov 1998
  5.  
  6.  
  7. WHAT IS FREEMACS?
  8. -----------------
  9.  
  10. It is an editor, similar to GNU Emacs.  Freemacs will run on all
  11. versions of DOS, on systems as old as an XT.  Freemacs is implemented
  12. entirely as a MINT language processor, just as GNU Emacs is a LISP
  13. processor.
  14.  
  15. The current version of Freemacs as of this writing is 1.6G.
  16.  
  17.  
  18. DOCUMENTATION
  19. -------------
  20.  
  21. Freemacs 1.6G is just a re-packaged 1.6D release with some copyright
  22. statements made clearer.  Since 1.6D didn't have any documentation,
  23. neither does 1.6G.  You might try downloading the 1.6A release from a
  24. simtel mirror (like ftp://oak.oakland.edu/put/simtelnet/msdos/freemacs/
  25. emacs16a.zip, I think) and grab the documentation from there.
  26.  
  27.  
  28. ENVIRONMENT
  29. -----------
  30.  
  31. You need to set the EMACS variable under DOS.  THis should be set to
  32. something like:
  33.  
  34.   EMACS=C:\EMACS\
  35.  
  36. (Yes, you need the trailing backslash).
  37.  
  38. You will also need to have C:\EMACS in your PATH variable (you don't
  39. need a trailing backslash here.)
  40.  
  41. To run Freemacs, just type:
  42.  
  43.   EMACS
  44.  
  45. You can also specify a file at the command line, like this:
  46.  
  47.   EMACS FILE.TXT
  48.  
  49.  
  50.  
  51. KEYSTROKES
  52. ----------
  53.  
  54. Once you are in Freemacs, use these keys:
  55.  
  56.   C-x C-s      Save the file ("C-x" means to press Control-x)
  57.   C-x C-x      Save and exit Freemacs
  58.   C-x C-f      Open a new file
  59.  
  60.   C-a          Jump to the beginning of the line
  61.   C-e          Jump to the end of the line
  62.  
  63.   C-@          Set the mark
  64.   C-w          Wipe the text between the mark and where the cursor is
  65. now (also copies the text to the "clipboard").
  66.   C-y          Yank back any text that was copied to the "clipboard".
  67.  
  68.   M-q          Justify the paragraph ("M-q" means to press Escape, then
  69. press q - or, you could instead type Alt-q.  The "M" stands for "Meta")
  70.  
  71.   M-u          Uppercase the word
  72.   M-c          Capitalize the first letter of a word
  73.   M-l          Lowercase a word
  74.  
  75. There are a bunch more, but I don't want to type all of them here.  :)
  76.  
  77.  
  78. Let's say you're in an empty file called FOO.FTN (a Fortran file) and
  79. you want to use fortran-mode.  Just type this:
  80.  
  81.   M-x fortran-mode
  82.  
  83. Now, at the beginning of the line, hit the Tab key.  You'll jump to the
  84. first instruction column.  Now type your instruction.
  85.  
  86. At the beginning of a new line, type a line label (a number).  You'll
  87. see the numbers line up in the label columns.  You'll also be able to
  88. start typing your instructions starting in the correct instruction
  89. column.
  90.  
  91. At the beginning of a new line, type a "C" character, and then hit Tab. 
  92. (Been a while since I wrote Fortran, so let's hope I get this right.) 
  93. You should be in a comment, and fortran-mode will automatically put your
  94. comment text at the start of the instruction columns.  You can also use
  95. a "*" character to start a comment.
  96.  
  97. Also try these to experiment:
  98.  
  99.   M-x fortran-column-ruler
  100.   M-x fortran-split-line
  101.  
  102. (I think I remember those right.  Try typing "M-x fortran-" then hit the
  103. Tab key once or twice.  You should see a list of all the fortran-mode
  104. meta commands pop up.)
  105.